
class VideoModel {

  int hotindex;
  int createtime;
  int duration;
  String playaddr;
  String coverurl;
  String title;
  String shareurl;
  String author;
  String signature;
  String avatar;

	VideoModel.fromJsonMap(Map<String, dynamic> map): 
		hotindex = map["hotindex"],
		createtime = map["createtime"],
		duration = map["duration"],
		playaddr = map["playaddr"],
		coverurl = map["coverurl"],
		title = map["title"],
		shareurl = map["shareurl"],
		author = map["author"],
		signature = map["signature"],
		avatar = map["avatar"];

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['hotindex'] = hotindex;
		data['createtime'] = createtime;
		data['duration'] = duration;
		data['playaddr'] = playaddr;
		data['coverurl'] = coverurl;
		data['title'] = title;
		data['shareurl'] = shareurl;
		data['author'] = author;
		data['signature'] = signature;
		data['avatar'] = avatar;
		return data;
	}
}
